<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/22
 * Time: 21:29
 */

namespace app\api\model;
use think\Model;

class Category extends Model
{
    protected $hidden = ['update_time', 'delete_time', 'topic_img_id'];
    //关联表
    public function img()
    {
        return $this -> belongsTo('image', 'topic_img_id', 'id');
    }
}